package com.moli.iov.base.remote.impl;

import com.moli.iov.base.model.dto.AddressDto;
import com.moli.iov.base.remote.IBaseCityRemoteService;
import com.moli.iov.base.service.IBaseCityService;
import com.moli.iov.base.util.CollectionUtils;
import com.moli.iov.rest.RestResponse;
import java.util.List;
import java.util.Map;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * The type Base city remote service.
 *
 * @author wanghualin
 * @date 2019 -10-17 16:43:29
 */
@Service(group = "${service.group}")
@Slf4j
public class IBaseCityRemoteServiceImpl implements  IBaseCityRemoteService {
  @Autowired
  private IBaseCityService iBaseCityService;

  @Override
  public RestResponse<List<AddressDto>> getProvinceAndCity() {

    return iBaseCityService.getProvinceAndCity();
  }

  @Override
  public RestResponse<List<AddressDto>>   queryAllAddressDtoTree() {
    return iBaseCityService.queryAllAddressDtoTree();
  }
}
